
/**   
 * @Title: Constants.java 
 * @Package: com.aft.jlgh.app 
 * @Description: TODO
 * @author Mandarava  
 * @date 2016年5月17日 上午9:38:26 
 * @version 1.3.1 
 * @Email wuyan1688@qq.com
 */

package com.aft.terra.app;

import com.jfinal.kit.PathKit;

/**
 * 系统常量表
 * 
 * @author Mandarava
 * @date 2016年5月17日 上午9:38:26
 * @version V1.3.1
 */

public final class Constants {

	/**
	 * 提示信息配置文件
	 */
	public static final String RES_MESSAGE_FILE_NAME = "message.properties";

	/**
	 * jdbc配置文件
	 */
	public static final String RES_JDBC_FILE_NAME = "jdbc.properties";

	/**
	 * 404页面路径
	 */
	public static final String ERROR_404_VIEW = "/404.html";

	/**
	 * 500页面路径
	 */
	public static final String ERROR_500_VIEW = "/500.html";

	/**
	 * 数据源连接地址
	 */
	public static final String JDBC_URL = "jdbc.url";

	/**
	 * 数据库用户名
	 */
	public static final String JDBC_USER_NAME = "jdbc.username";

	/**
	 * 数据库密码
	 */
	public static final String JDBC_PASSWORD = "jdbc.password";

	/**
	 * 数据库驱动
	 */
	public static final String JDBC_DRIVER_CLASS = "jdbc.driverClass";

	/**
	 * 数据库最大连接数
	 */
	public static final String JDBC_MAX_ACTIVE = "jdbc.maxActive";

	/**
	 * 过滤器
	 */
	public static final String JDBC_FILTERS = "jdbc.filters";

	/**
	 * 是否打印sql
	 */
	public static final String IS_SHOW_SQL = "showsql";

	/**
	 * redis IP地址
	 */
	public static final String REDIS_IP_ADDRESS = "redis.ip";

	/**
	 * redis 端口
	 */
	public static final String REDIS_PORT = "redis.port";

	/**
	 * redis 数据库名
	 */
	public static final String REDIS_DB_NAME = "redis.db";

	/**
	 * redis 数据库密码
	 */
	public static final String REDIS_DB_PASSWORD = "redis.db.password";

	/**
	 * 接口Header名
	 */
	public static final String API_HEADER_APPNAME = "Aft-Cdcb-avoscloud-Application-AppName";
	
	public static final String API_HEADER_APITOKEN  = "Aft-Cdcb-avoscloud-Application-ApiToken";
	
	/**
	 * ecache 全局公用缓存名<br>
	 * 用于存放公共信息，<br>
	 * 如：字典等
	 */
	public static final String GLOBAL_CACHE_NAME = "common";

	/**
	 * 行政区划缓存key
	 */
	public static final String RESIDENCE_AREA_CACHE_NAME = "residence_area";

	/**
	 * 临时文件上传路径
	 */
	public static final String UPLOAD_FILE_PATH = "upload.file.path";

	/**
	 * 临时文件目录
	 */
	public static final String TEMP_DIRECTORY = PathKit.getWebRootPath() + "/" + "temp/";

	/**
	 * 图片后缀名
	 */
	public static final String IMAGE_SUFFIX = ".jpeg";

	/**
	 * 微信授权登陆URL
	 */
	public static final String WEIXIN_OAUTH2_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";

	/**
	 * 钱方支付获取code回调url
	 */
	public static final String QF_CODE_CALLBAKE = "http://15o66766h0.51mypc.cn/pay/toPayment";

	/**
	 * 钱方支付获取支付成功跳转url
	 */
	public static final String QF_PAMENT_RENDER = "http://15o66766h0.51mypc.cn/pay/paymentOver";

	/**
	 * 用户信息存放在cookie中的key
	 */
	public static final String SESSION_NAME = "l";

	/**
	 * 订单id
	 */
	public static final String SESSION_ORDERID = "ordersid";

	/**
	 * 订单id
	 */
	public static final String SESSION_ORDER_TOTAL_PRICE = "ordersTotalPrice";

	/**
	 * 钱方支付获取code（每次都会变）
	 */
	public static final String SESSION_APPCODE = "appCode";

	/**
	 * 商家信息存放在cookie中的key
	 */
	public static final String ACCOUNT_SESSION_NAME = "accountCookie";
	/**
	 * 用户信息存放在redis里的时限为12小时，cookie中为一次会话
	 */
	public static final Integer DEFAULT_COOKIE_TIME_LIMIT = 60 * 60 * 12;

	/**
	 * 请求登陆之前的url
	 */
	public static final String HTTP_REQUEST_REFERER_URL = "refererUrl";

	/**
	 * 首页URL
	 */
	public static final String HOME_URL = "/shop/index";

	public static final String TAG_ADVER_IN_ADVER_CATEGORY_NAME = "adver_name";

	public static final String TAG_ADVER_IN_ADVER_CATEGORY_KEY = "adver_categort";

	public static final String TAG_INDEX_NAVIGATION_KEY = "navigation_name";
	

	/**
	 * 交易关闭key
	 */
	public static final String ORDERS_STATUS_0 = "0";

	/**
	 * 交易中key
	 */
	public static final String ORDERS_STATUS_1 = "1";

	/**
	 * 交易完成key
	 */
	public static final String ORDERS_STATUS_2 = "2";

	/**
	 * 交易关闭value
	 */
	public static final String ORDERS_STATUS_V_0 = "交易关闭";

	/**
	 * 交易中value
	 */
	public static final String ORDERS_STATUS_V_1 = "交易中";

	/**
	 * 交易完成value
	 */
	public static final String ORDERS_STATUS_V_2 = "交易完成";

	/**
	 * 未付款 key
	 */
	public static final String ORDERS_PAY_STATUS_0 = "0";

	/**
	 * 已付款 key
	 */
	public static final String ORDERS_PAY_STATUS_1 = "1";

	/**
	 * 未付款 value
	 */
	public static final String ORDERS_PAY_STATUS_V_0 = "未付款";

	/**
	 * 已付款 value
	 */
	public static final String ORDERS_PAY_STATUS_V_1 = "已付款";

	/**
	 * 无退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_0 = "0";

	/**
	 * 申请退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_1 = "1";

	/**
	 * 退款中KEY
	 */
	public static final String ORDERS_BACK_STATUS_2 = "2";

	/**
	 * 已退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_3 = "3";

	/**
	 * 拒绝退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_4 = "4";

	/**
	 * 取消退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_5 = "5";
	public static final String ORDERS_BACK_STATUS_6 = "6";
	/**
	 * 无退款value
	 */
	public static final String ORDERS_BACK_STATUS_V_0 = "无退款";

	/**
	 * 申请退款value
	 */
	public static final String ORDERS_BACK_STATUS_V_1 = "申请退款";

	/**
	 * 退款中 value
	 */
	public static final String ORDERS_BACK_STATUS_V_2 = "退款中";

	/**
	 * 已退款value
	 */
	public static final String ORDERS_BACK_STATUS_V_3 = "已退款";

	/**
	 * 取消退款KEY
	 */
	public static final String ORDERS_BACK_STATUS_V_5 = "取消退款";
	public static final String ORDERS_BACK_STATUS_V_6 = "部分已退款";
	/**
	 * 未发货key
	 */
	public static final String ORDERS_SEND_STATUS_0 = "0";

	/**
	 * 已发货key
	 */
	public static final String ORDERS_SEND_STATUS_1 = "1";

	/**
	 * 已收货key
	 */
	public static final String ORDERS_SEND_STATUS_2 = "2";

	/**
	 * 未发货value
	 */
	public static final String ORDERS_SEND_STATUS_V_0 = "未发货";

	/**
	 * 已发货value
	 */
	public static final String ORDERS_SEND_STATUS_V_1 = "已发货 ";

	/**
	 * 已收货value
	 */
	public static final String ORDERS_SEND_STATUS_V_2 = "已收货";

	// 订单状态类别key
	public static final String ORDERS_STATUS_TYPE_1 = "1";
	public static final String ORDERS_STATUS_TYPE_2 = "2";
	public static final String ORDERS_STATUS_TYPE_3 = "3";
	public static final String ORDERS_STATUS_TYPE_4 = "4";

	// 订单状态类别value
	public static final String ORDERS_STATUS_TYPE_V_1 = "订单状态";
	public static final String ORDERS_STATUS_TYPE_V_2 = "付款状态";
	public static final String ORDERS_STATUS_TYPE_V_3 = "退款状态";
	public static final String ORDERS_STATUS_TYPE_V_4 = "发货状态";

	public static final Integer MAX_SCORE = 105;
	/**
	 * 是退款订单
	 */
	public static final Integer ORDERS_IS_BACK = 1;
	
//	public static final String CCB_PAY_PUB = "755c1ec79c9eb645a5e31755020111";
	public static final String CCB_PAY_PUB = "1ead6232a6806209c9f8629b020111";
	
	public static final String CCB_PAY_KEY = "30819d300d06092a864886f70d010101050003818b003081870281810081ef0bd1df4db3d6f925a1f94df2acb2687a0660d4498a62523e1997b14cfa04862cd893d7f1eb6446d87d39bbc304a5ec57506eccd00bb3ee15799bba84d48ade3c171eef71b2440345c293decd36d97eaffb97292fabe0ce6115a16b25d142b7d843cc6ba2cd3d00c2a259f73e4e2c80556ebc1ead6232a6806209c9f8629b020111";

	public static final String DIGLETT_TOTEN = "diglett_toten";
	public static final String JSAPI_TICKET = "jsapi_ticket";

	public static final String MISSION_DETAILS = "mission_details";
	
	public static final String REVIEW_MISSION = "review_mission";
	
	public static final String REVIEW_MISSION_DETAILS = "review_mission_details";
	
	public static final String WECHAT_MISSION_PHONE = "wechat_mission_phone";

	public static final String INTERCEPT_BOOLEAN = "true";
	
	
	/**
	 * 发送短信验证码的时间
	 */
	public static final String COOKIE_SEND_MESSAGE_TIME = "sendTime";

	/**
	 * 短信验证码
	 */
	public static final String COOKIE_SEND_CODE = "sendCode";

	/**
	 * 用户手机+验证码MD5加密串
	 */
	public static final String COOKIE_PHONE_CODE = "phoneCode";

	/**
	 * 用户登陆注册相关发送验证码短信内容
	 */
	public static final String PROR_SEND_MESSAGE_USER = "send.message.user";


	public static final String SMS_TEMPLET_YZM = "99550";
//	public static final String SMS_TEMPLET_YZM = "153051";
	
	/**
	 * 验证码类型 登陆
	 */
	public static final String PROP_SEND_MESSAGE_LOGIN = "send.message.login";

	/**
	 * 验证码类型 注册
	 */
	public static final String PROP_SEND_MESSAGE_REG = "send.message.reg";

	/**
	 * 验证码类型 找回密码
	 */
	public static final String PROP_SEND_MESSAGE_FIND = "send.message.find";

	/**
	 * 重新发送短信提示
	 */
	public static final String PROP_SEND_MESSAGE_RETRY = "send.message.retry";

	/**
	 * 绑定手机短信内容
	 */
	public static final String PROP_SEND_MESSAGE_BIND = "send.message.bind";

	/**
	 * 验证码类型 当前手机
	 */
	public static final String PROP_SEND_MESSAGE_BIND_OLD = "send.message.bind.old";

	/**
	 * 验证码类型 新手机
	 */
	public static final String PROP_SEND_MESSAGE_BIND_NEW = "send.message.bind.new";
	/**
	 * 资源文件提示用户登陆成功 key
	 */
	public static final String PROP_LOGIN_SUCCESS_TIP = "login.success.tip";

	/**
	 * 提示发送成功
	 */
	public static final String PROP_SYS_SUCCESS_TIP = "sys.success.tip";

	/**
	 * 提示系统异常
	 */
	public static final String PROP_SYS_FAILED_TIP = "sys.failed.tip";

	/**
	 * 验证码过期提示
	 */
	public static final String PROP_MESSAGE_CODE_TIP = "message.code.tik";

	/**
	 * 提示验证码错误
	 */
	public static final String PROP_LOGIN_FAILED_CODE_TIP = "login.failed.code.tip";

	public static final Integer ACCOUNT_STATUS = 1 ;

	public static final String PHONE_PROVINCE = "吉林";
	
	public static final String GAME_CONFIG_PARAMS = "game_config_params";
	public static final String GAME_ADVER = "game_adver";
	
	public static final String CUSTOM_FORMAT_XSS_NAME = "xss";

}
